package com.xiaoyu.lanling.feature.checkin.datamodel

import `in`.srain.cube.request.JsonData
import com.xiaoyu.base.utils.JsonUtil
import java.io.Serializable

class CheckInInfo(jsonData: JsonData) : Serializable {
    val checkInDays = jsonData.optInt("checkInDays")
    val list = JsonUtil.convertToList(jsonData.optJson("list")) { rawData -> CheckInDailyItem(rawData) }
}